package netty.test24NettyDoubbo.consumer;

import netty.test24NettyDoubbo.netty.NettyClient;
import netty.test24NettyDoubbo.provider.HelloServiceProvider;

public class ClientConsumer {
    public  static String providerName="HelloServiceProvider#hello";
    public static void main(String[] args) {
        //创建一个消防者
        NettyClient customer=new NettyClient();
        HelloServiceProvider bean = (HelloServiceProvider)customer.getBean(HelloServiceProvider.class, providerName);
        //通过代理对象调用服务提供者的方法。
        String res=bean.hello("#你好dubbo....");
        System.out.println("客户端调用的结果。。。。。"+res);

    }
}
